package com.example.home_stretch;

import android.text.TextUtils;

import java.util.List;
 public class Traffic_lights_list {

     /**
      * data : [{"green":"11111","red":"11","road":1,"yellow":""},{"road":2,"yellow":40,"green":45,"red":25},{"road":3,"yellow":40,"green":10,"red":45},{"road":4,"yellow":35,"green":5,"red":55},{"road":5,"yellow":5,"green":55,"red":20}]
      * RESULT : S
      * ERRMSG : 成功
      */

     private String RESULT;
     private String ERRMSG;
     private List<DataBean> data;

     public String getRESULT() {
         return RESULT;
     }

     public void setRESULT(String RESULT) {
         this.RESULT = RESULT;
     }

     public String getERRMSG() {
         return ERRMSG;
     }

     public void setERRMSG(String ERRMSG) {
         this.ERRMSG = ERRMSG;
     }

     public List<DataBean> getData() {
         return data;
     }

     public void setData(List<DataBean> data) {
         this.data = data;
     }

     public static class DataBean {
         /**
          * green : 11111
          * red : 11
          * road : 1
          * yellow :
          */

         private String green;
         private String red;
         private int road;
         private String yellow;

         public String getGreen() {
             return green;
         }

         public void setGreen(String green) {
             this.green = green;
         }

         public String getRed() {
             return red;
         }

         public void setRed(String red) {
             this.red = red;
         }

         public int getRoad() {
             return road;
         }

         public void setRoad(int road) {
             this.road = road;
         }

         public String getYellow() {
             if(yellow.equals("")){yellow="0";}
             return yellow;
         }

         public void setYellow(String yellow) {
             this.yellow = yellow;
         }
     }
 }
